package com.gdwhomework.chapter07.homework004;

public class HomeWork004 {
    public static void main(String[] args) {
        Worker worker = new Worker("打铁匠", 33, '男', 5000);
        worker.showAllYearSal();
        Peasant peasant = new Peasant("老李头", 54, '男', 3000);
        peasant.showAllYearSal();
        Waiter waiter = new Waiter("小李", 23, '女', 3500);
        waiter.showAllYearSal();
        Teacher teacher = new Teacher("TOM", 37, '男', 3000, 160, 30);
        teacher.showAllYearSal();
        Scientist scientist = new Scientist("钱学森", 66, '男', 20000, 100000);
        scientist.showAllYearSal();
    }
}
